﻿<UserControl x:Class="Unscrambler.Views.GameMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             >
    <StackPanel  Grid.Column="0">
        <StackPanel.Resources>
            <Style TargetType="{x:Type Button}">
                <Setter Property="Height" Value="80"/>
                <Setter Property="Width" Value="150"/>
                <Setter Property="Margin" Value="5,30,5,0"/>
                <Setter Property="IsEnabled" Value="False"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding Path=AskIfUserWantsToRestartCurrentGame}" Value="False"/>
                            <Condition Binding="{Binding Path=AskIfUserWantsToExitCurrentGame}" Value="False"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.Setters>
                            <Setter Property="IsEnabled" Value="True"/>
                        </MultiDataTrigger.Setters>

                    </MultiDataTrigger>

                </Style.Triggers>
            </Style>
        </StackPanel.Resources>
        <Button Content="Start New Game" Command="{Binding Path=StartGameCommand}"/>
        <Button Content="Get Hint" Command="{Binding Path=GetHintCommand}"/>
        <Button Content="Skip Word"  Command="{Binding Path=SkipWordCommand}"/>
        <Button Content="Help" Command="{Binding Path=ToggleHelpCommand}"/>
        <Button Content="Exit" Command="{Binding Path=EndGameCommand}"/>
    </StackPanel>
</UserControl>
